<?php $this->headLink()->appendStylesheet(Ac_Util::getImageBaseUrl('/css/custom_serp.v-'.AC_VERSION.'.css'))?>
<?php $this->placeholder('container-class')->set('send_msg serp success')?>
<article class="article">
    <section class="main_section">
        <section class="send_msg success">
            <section class="ad medium"> <a href="#"><img src="<?php echo Ac_Util::getImageBaseUrl('/images/ad_300_250.jpg')?>"></a> </section>
            <h3> 谢谢，你的私信已成功发送</h3>
            <p>确认你私信发送成功及回应的所有内容，都会发到你的邮箱<em><?php echo $this->email?></em>。</p>
            <section class="posted_ad  result list ">
                <ul>
                    <li class="item"> 
                        <?php
                            $this->partial()->setObjectKey('model');
                            echo $this->partial(
                                'index/listing-element.phtml',
                                'search',
                                array(
                                    'item'                  => $this->listing,
                                    'photo_width'           => 120,
                                    'photo_height'          => 120,
                                    'photo_params'          => array(),
                                    'display_photo_if_not_exists' => true,
                            ));
                        ?>
                    </li>
                </ul>
            </section>   
            <?php //if ($this->similar_ads->count() > 0):?>
			<?php if (count($this->similar_ads) > 0 ):?>
                <section class="gallery hor box">
                    <h3>类似宝贝</h3>
                    <!--pre><?php print_r($this->similar_ads)?></pre-->
                    <ul>
                        <?php foreach($this->similar_ads as $item):?>
                            <li>
                            	<!--pre><?php print_r($item)?></pre-->
                                <?php
                                    $this->partial()->setObjectKey('model');
                                    echo $this->partial(
                                        'index/listing-element.phtml',
                                        'search',
                                        array(
                                            'item'                  => $item,
                                            'photo_width'           => 171,
                                            'photo_height'          => 171,
                                            'photo_params'          => array(),
                                            'display_photo_if_not_exists' => true,
                                            'display_date'                => false,
                                            'display_category'            => false,
                                            'display_customization'       => false,
                                    ));
                                ?>
                            </li>
                        <?php endforeach;?>
                    </ul>
                </section>
            <?php endif;?>
        </section>
    </section>
    <aside class="aside"></aside>
</article>
